<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>商户管理</a></li>
			<li class="active"><strong>商户进件审核</strong></li>
		</ol>
	</div>
</div>
<style>
	.gridStyleA {
		border: 1px solid #d4d4d4;
		width: 100%;
		height: auto !important;
		overflow: hidden;
	}
	.gridStyleA .ui-grid-render-container-body .ui-grid-canvas{
		height: auto !important;
	}
	.gridStyleA .ui-grid-render-container-body .ui-grid-viewport{
		height: auto !important;
	}
	.col-img{ width: 270px; height:220px; padding: 0 10px 30px; float: left; overflow: hidden;}
	.lh30 {
		line-height: 20px;
	}
	.ui-grid-header-cell .ui-grid-cell-contents{
		height: 28px;
		padding: 0;
	}
	.ui-grid-column-menu-button{
		top:0px;
	}
	.control-label {
		margin-bottom: 0;
		text-align: right;
	}
	.ibox-title {
		-moz-border-bottom-colors: none;
		-moz-border-left-colors: none;
		-moz-border-right-colors: none;
		-moz-border-top-colors: none;
		background-color: #ffffff;
		color: inherit;
		margin-bottom: 0;
		padding: 6px 17px 7px;
		min-height:30px;
	}
	.btn-newA{color:#fff;border-color:#FFFFFF;padding:7px 0;width: 120px;}
	.btn-newA:hover,
	.btn-newA:focus,
	.btn-newA:active,
	.btn-newA:active:focus,
	.btn-newA:active:hover,
	.btn-newA.active:focus {
		background:#FFFFFF;
		border-color: #FFFFFF;
		color: #fff;
	}
</style>

<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app
	ng-controller="merchantExamineDetailCtrl">
	<form class="form-horizontal" id="form1">
		<div class="row">
			<div class="col-lg-12">
				<div class="tabs-container tab_other">
					<div class="panel-body ibox float-e-margins">
						<div class="ibox-title">
							<h5>基本信息</h5>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">商户进件编号：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.id"></div>
							<label class="col-sm-2 control-label">商户编号：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.merchantNo">
							</div>
							<label class="col-sm-2 control-label">商户名称：</label>
							<div class="col-sm-2 checkbox" ng-bind="info.merchantName">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">手机号：</label>
							<div class="col-sm-2 checkbox" ng-bind="info.mobilephone">
							</div>
							<label class="col-sm-2 control-label">一级代理商：</label>
							<div class="col-sm-2 checkbox" ng-bind="agent.agentName">
							</div>
							<label class="col-sm-2 control-label">一级代理商所属销售：</label>
							<div class="col-sm-2 checkbox" ng-bind="agent.saleName">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">进件来源：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.itemSource |formatDropping:merItemSourceList">
							</div>
							<label class="col-sm-2 control-label">业务产品：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.bpName">
							</div>
							<label class="col-sm-2 control-label">法人姓名：</label>
							<div class="col-sm-2 checkbox" ng-bind="info.lawyer">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">鉴权通道：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.realAuthChannelName">
							</div>
							<label class="col-sm-2 control-label">自动审核活体通道：</label>
							<div class="col-sm-2 checkbox" ng-bind="mbp.huoTiChannel">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">所属代理商：</label>
							<div class="col-sm-2 checkbox" ng-bind="merAgent.agentName">
							</div>
							<label class="col-sm-2 control-label">法人身份证号：</label>
							<div class="col-sm-2 checkbox" ng-bind="info.idCardNo">
							</div>
							<div class="col-sm-2 checkbox" style="padding: 0">
								<button ng-click="approve()" class="btn btn-sm-ls" style="width: 100px;" type="button">身份验证</button>
							</div>
							<div class="col-sm-2 checkbox">
								<p ng-show="apps==2">{{errMsg}}</p>
								<p ng-show="apps==0">验证通过</p>
							</div>
						</div>

						<div class="ibox-title">
							<h5>经营信息</h5>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">商户类型：</label>
							<div class="col-sm-2 checkbox" ng-bind="merchantTypes(info.merchantType)">
							</div>
							<div ng-hide="info.merchantType==1" >
								<label class="col-sm-2 control-label">经营范围：</label>
								<div class="col-sm-6 checkbox">
									<span>{{info.sysName+" "+info.twoSysName}}</span>
								</div>
							</div>
						</div>

						<div class="ibox-title">
							<h5>明细</h5>
						</div>
						<div class="form-group">
							<div class="form-group">
								<div class="gridStyleA auditDetail" ui-grid-resize-columns ui-auto-resize ui-grid="merchantDetailed"/>
							</div>
							<div class="form-group" style="padding-bottom: 20px;">
								<div class="col-img"  ng-repeat="m in listMris">
									<div>{{m.itemName}}</div>
									<div><a href="{{m.content}}" fancybox rel="group" title="{{m.remark}}"> <img width="250px" height="150px" ng-src="{{m.content}}"/></a></div>
									<div ng-show="m.checkStatus==1"><input type="checkbox" ng-click="rdts(1,m.id,m.mriId)">不通过</div>


								</div>
							</div>
						</div>
						<div class="ibox-title">
							<h5>企业对比记录</h5>
						</div>
						<div class="form-group">
							<div class="gridStyleA auditDetail" style="height: 200px;" ui-grid-resize-columns ui-grid="comparListGrid"/>

						</div>
						<div class="ibox-title">
							<h5>审核记录</h5>
						</div>
						<div class="form-group">
							<div class="gridStyleA auditDetail" style="height: 200px;" ui-grid-resize-columns ui-grid="merchantRecords"/>

						</div>

						<div class="ibox-title">
							<h5>复审记录</h5>
						</div>
						<div class="form-group">
							<div class="gridStyleA auditDetail" style="height: 200px;" ui-grid-resize-columns ui-grid="remerchantRecords"/>
						</div>

						<div class="ibox-title">
							<h5>机具信息</h5>
						</div>
						<div class="form-group" ng-repeat="val in terminal">
							<label class="col-sm-2 control-label">业务产品：</label>
							<div class="col-sm-2 checkbox" ng-bind="val.bpName">
							</div>
							<label class="col-sm-2 control-label">机具号：</label>
							<div class="col-sm-2 checkbox" ng-bind="val.sn">
							</div>
						</div>
						<div class="ibox-title">
							<h5>备注</h5>
						</div>
						<div class="form-group">
							<div class="col-sm-8" style="margin-left: 80px;">
								<textarea rows="2" cols="100" disabled="disabled" class="form-control" ng-model="info.remark"/>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
			<div class="col-lg-12 bgff dprevent" style="padding-bottom: 150px;">
				<div style="width: 100%;height: 220px;position: fixed;bottom: 0; background: #fff;padding-top: 20px;">
				<div class="form-group">
					<label class="col-sm-2 control-label">审核意见：</label>
					<div class="col-sm-8">
						<textarea ng-keydown="upds()" ng-model="asd.oppend" class="form-control txtprevent" rows="5"></textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12" style="margin-left: 100px;">
						<a class="btn btn-primary4 btn-mr20" style="width: 130px;" type="button"  ng-click="regressionOld()" id="btnSubmit1">返回</a>

						<button class="btn btn-newA btn-mr20" style="width: 130px;background:red;" type="button" ng-click="commitInfo(2)" ng-disabled="submitting" id="btnSubmit2">审核不通过</button>

						<button class="btn btn-newA btn-mr20" style="width: 130px;background:green;" type="button" ng-click="commitInfo(1)" ng-disabled="submitting" id="btnSubmit3">审核通过</button>

						<button class="btn btn-newA btn-mr20" style="width: 130px;background:red;" type="button" ng-click="commitInfo(4)" ng-disabled="submitting" id="btnSubmit4">不通过并下一条</button>

						<button class="btn btn-newA btn-mr20 " style="width: 130px;background:green;" type="button" ng-click="commitInfo(3)" ng-disabled="submitting" id="btnSubmit5">通过并下一条</button>
					</div>
				</div>
				</div>
			</div>
	</form>
</div>
